var cnt=0;
process.stdin.resume();
process.stdin.on('data', function (data) {
   var number;
    if(++cnt>5)process.exit();
    try{
        number=parseInt(data.toString(),10);
        number++;
        process.stdout.write('Result:'+number+'\n');
    }catch(err){
        process.stderr.write(err.message);
        process.exit();
    }
});